package cn.zjweu.service.impl;

import cn.zjweu.pojo.User;
import cn.zjweu.service.RegisterService;
import cn.zjweu.mapper.RegisterMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterServiceImpl implements RegisterService {

    @Autowired
    private RegisterMapper registerMapper;

    @Override
    public int register(String username, String password, String trueName, String telephone, String city, String address) {
        return registerMapper.register(username, password, trueName, telephone, city, address);
    }

    @Override
    public User isExist(String username) {
        return registerMapper.isExist(username);
    }
}
